//意见反馈
import request from '../utils/request'

//创建新的
export function create(params) {
    return request.ajax({
        url: `/opinion`,
        method: 'put',
        isJson:true,
        params
    })
}

//意见反馈列表/client/opinion/list
export function getFeedback(params) {
  return request.ajax({
    url: `/opinion/list`,
    method: 'get',
    params
  })
}

//意见反馈详情/client/opinion/detail
export function getFeedBackDetail(id) {
  return request.ajax({
    url: `/opinion/detail?id=${id}`,
    method: 'get'
  })
}